package com.shuoyue.ycgk.entity;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * 专业门科
 */
@Data
public class MajorSection {
    String name;
    List<MajorType> types;
    boolean select;

    public void addMajorType(String name, String majors) {
        if (types == null) {
            types = new ArrayList<>();
        }
        MajorType majorType = new MajorType();
        majorType.setName(name);
        if (majors != null) {
            majorType.setMajorsss(majors);
        }
        types.add(majorType);
    }
}
